package my.test.memento.multistate;

import java.util.HashMap;

/**
 * @Author 许玉康
 * @Date 2019/9/29 13:51
 * 备忘录角色
 */
public class Memento {
    //接受HashMap作为状态
    private HashMap<String, Object> stateMap;

    //接受一个对象，建立一个备份
    public Memento(HashMap<String, Object> stateMap) {
        this.stateMap = stateMap;
    }

    public HashMap<String, Object> getStateMap() {
        return stateMap;
    }

    public void setStateMap(HashMap<String, Object> stateMap) {
        this.stateMap = stateMap;
    }
}
